package StudyCode.summary.mydatetime;

import java.time.LocalDate;
import java.time.chrono.ThaiBuddhistDate;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ThaiBuddhistISOConvert {
	public static void main(String[] args) {
		ThaiBuddhistDate thaiBuddhistNow = ThaiBuddhistDate.now();
		LocalDate isoNow = LocalDate.now();
		System.out.println("泰国佛教当前日期是: " + thaiBuddhistNow);
		System.out.println("国际标准日期是: " + isoNow);

		ThaiBuddhistDate thaiBuddhistNow2 = ThaiBuddhistDate.from(isoNow);
		LocalDate isoNow2 = LocalDate.from(thaiBuddhistNow);
		System.out.println("国际标准日期转为泰国佛教日期: " + thaiBuddhistNow2);
		System.out.println("泰国佛教日期转为国际标准日期: " + isoNow2);
	}
}
